using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;
using System.Data.Entity.ModelConfiguration.Configuration;
using ESoft.Core.DAO;
using ESoft.Core.Model;

namespace ESoft.Domain.Entity
{
    /// <summary>
    /// Category
    /// </summary>    
	[Table("category")]
    public partial class CategoryEntity : BaseFakeModel<String>
    {		    
        /// <summary>
        /// 
        /// </summary>
		[Column("category_name")]
        public string CategoryName { get; set; }
    
        /// <summary>
        /// 1普通2套餐
        /// </summary>
		[Column("category_type")]
        public int? CategoryType { get; set; }
    
        /// <summary>
        /// 排序
        /// </summary>
		[Column("category_order")]
        public int? CategoryOrder { get; set; }
    
        /// <summary>
        /// 父级ID
        /// </summary>
		[Column("parent_id")]
        public string ParentId { get; set; }
    
        /// <summary>
        /// 
        /// </summary>
		[Column("shop_id")]
        public string ShopId { get; set; }
    }

	public class CategoryEntityRegstHelper : IEntityMapper
    {
        public void RegistTo(ConfigurationRegistrar configurations)
        {
            configurations.Add<CategoryEntity>(new EntityTypeConfiguration<CategoryEntity>());
        }
    }
}

